<?php
// +----------------------------------------------------------------------
// | 07FLYSAAS [基于ThinkPHP5.0开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2025-2035 http://www.07fly.xyz
// +----------------------------------------------------------------------
// | Professional because of focus  Persevering because of happiness
// +----------------------------------------------------------------------
// | Author: 开发人生 <goodkfrs@qq.com>
// +----------------------------------------------------------------------

namespace app\plat\controller;

/**
 * 租户配置管理
 */
class TenTenant extends PlatBase
{
    // 编辑租户信息
    public function setconfig()
    {
        IS_POST && $this->jump($this->logicTenTenant->tenTenantEdit($this->param));
        $where['id'] = TEN_TENANT_ID;
        $info = $this->logicTenTenant->getTenTenantInfo($where);
        $this->assign('info', $info);
        return $this->fetch('setconfig');
    }



    //配置
    public function setconfig2()
    {
        IS_POST && $this->jump($this->logicTenTenantConfig->setTenTenantConfigConf($this->param));
        $config = $this->logicTenTenantConfig->getTenTenantConfigConf($this->param);
        $param = $this->logicTenTenantConfig->getEmailParam();
        $this->assign('param', $param);
        $this->assign('info', $config);
        return $this->fetch('config');
    }
}
